package com.jgk.gwt.recipes.contacts.client;

import java.util.ArrayList;

import com.google.gwt.user.client.rpc.AsyncCallback;
import com.jgk.gwt.recipes.contacts.shared.Contact;
import com.jgk.gwt.recipes.contacts.shared.ContactDetails;

public interface ContactsServiceAsync {
	  public void addContact(Contact contact, AsyncCallback<Contact> callback);
	  public void deleteContact(String id, AsyncCallback<Boolean> callback);
	  public void deleteContacts(ArrayList<String> ids, AsyncCallback<ArrayList<ContactDetails>> callback);
	  public void getContactDetails(AsyncCallback<ArrayList<ContactDetails>> callback);
	  public void getContact(String id, AsyncCallback<Contact> callback);
	  public void updateContact(Contact contact, AsyncCallback<Contact> callback);

}
